#ifndef SHARE_MEM_H
#define SHARE_MEM_H

#include <stdint.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>

class ShareMem
{
  public:
    ShareMem(const char* name,unsigned long size);
    virtual ~ShareMem();
    void* GetMemory();
  
  private:
    int fd;
    unsigned long mem_size;
    void * mem_ptr;
};

#endif
